﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WMS.Domain
{
    [Table("UserInfo")]
    public class UserInfo:BaseModel
	{
        [Key]
        public int UserId { get; set; }
        [Required]
        public string? LoginName { get; set; } = string.Empty;
        [Required]
        public string? Password { get; set; }
        [Required]
        public string? UserName { get; set; }
        [Required]
        public bool Gender { get; set; }
        [Required]
        public string Phone { get; set; }
        [Required]
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 错误次数
        /// </summary>
        public int ErrorCount { get; set; }
        /// <summary>
        /// 锁定状态
        /// </summary>
        public bool IsLock { get; set; }
        [Required]
        public bool IsDel { get; set; }

        
    }
}

